from mcp.server.fastmcp import FastMCP

mcp = FastMCP("Mcp Server")


# 使用装饰器注册一个加法工具
@mcp.tool()
def add(a: int, b: int) -> int:
    """两个数相加"""
    return a + b


if __name__ == "__main__":
    # Initialize and run the server
    mcp.run(transport="stdio")
